package com.mijie.exception;

public class DeleteLastOneRecordException extends Exception {

	private static final long serialVersionUID = 1L;
	private int userId;
	private Object recordId;
	
	public DeleteLastOneRecordException(int userId,Object recordId){
		this.userId = userId;
		this.recordId = recordId;
	}
	
	@Override
	public String getMessage() {
		return "Can not delete the last on record,record id :"+recordId+",owner :"+userId;
	}
}
